<?php

defined('SYSPATH') or die('Access error!');

/**
 * 用户的问答管理类
 * ============================================================================
 * 功能描述： 
 *     主要用来处理回复
 * ============================================================================
 * $Author: liuxudong $
 */
class Controller_User_Q2a_Answer extends Controller_User_Main
{

    private $answer;
    private $where_arr = array();

    public function before()
    {
        parent::before();
        $this->answer = Model_Q2a_Answer::factory('q2a_answer');

        $this->where_arr['post_type'] = Q2A_POST_TYPE_ANSWER;
        $this->where_arr['user_id'] = $this->user_detail['id'];
    }

    public function action_list()
    {
        $post_list = $this->answer->get_answer_list($this->where_arr);
        $this->template->assign('post_list', $post_list);
        $this->template->view('user_q2a_answer_list');
    }

}